<html>
<head><meta charset="utf-8"><title>fluff · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/fluff.html">fluff</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="213189666"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/fluff/near/213189666" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/fluff.html#213189666">(Oct 13 2020 at 17:29)</a>:</h4>
<div class="codehilite"><pre><span></span><code>error[E0308]: mismatched types
  --&gt; crates/ide/src/doc_links.rs:77:14
   |
77 |         Some(&amp;mut cb),
   |              ^^^^^^^ one type is more general than the other
   |
   = note: expected type `FnOnce&lt;(BrokenLink&lt;&#39;_&gt;,)&gt;`
              found type `FnOnce&lt;(BrokenLink&lt;&#39;_&gt;,)&gt;`
</code></pre></div>


<p>Hmm..</p>



<a name="213191639"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/fluff/near/213191639" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/fluff.html#213191639">(Oct 13 2020 at 17:45)</a>:</h4>
<p><code>-Zverbose</code> outputs the internal representation lifetime instead of <code>'_</code>. This may help debugging.</p>



<a name="213191877"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/fluff/near/213191877" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Lukas Wirth <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/fluff.html#213191877">(Oct 13 2020 at 17:47)</a>:</h4>
<p>This is one of rust's errors I wish that would get some more love, always a bit confusing when encountering that one.</p>



<a name="213192659"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/fluff/near/213192659" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/fluff.html#213192659">(Oct 13 2020 at 17:53)</a>:</h4>
<p>I didn't even have to specify a lifetime, just to add a type annotation for the argument.</p>



<a name="213192905"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/fluff/near/213192905" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/fluff.html#213192905">(Oct 13 2020 at 17:55)</a>:</h4>
<p>But yeah, <code>Option&lt;&amp;'a mut dyn FnMut(BrokenLink&lt;'_&gt;) -&gt; Option&lt;(CowStr&lt;'a&gt;, CowStr&lt;'a&gt;)&gt;&gt;</code> is a bit gnarly</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>